package com.kingzoon.seckill.entity;

import java.util.ArrayList;
import java.util.List;

public class SpmDictValueExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public SpmDictValueExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andExchangeIdIsNull() {
            addCriterion("EXCHANGE_ID is null");
            return (Criteria) this;
        }

        public Criteria andExchangeIdIsNotNull() {
            addCriterion("EXCHANGE_ID is not null");
            return (Criteria) this;
        }

        public Criteria andExchangeIdEqualTo(String value) {
            addCriterion("EXCHANGE_ID =", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotEqualTo(String value) {
            addCriterion("EXCHANGE_ID <>", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdGreaterThan(String value) {
            addCriterion("EXCHANGE_ID >", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdGreaterThanOrEqualTo(String value) {
            addCriterion("EXCHANGE_ID >=", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLessThan(String value) {
            addCriterion("EXCHANGE_ID <", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLessThanOrEqualTo(String value) {
            addCriterion("EXCHANGE_ID <=", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdLike(String value) {
            addCriterion("EXCHANGE_ID like", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotLike(String value) {
            addCriterion("EXCHANGE_ID not like", value, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdIn(List<String> values) {
            addCriterion("EXCHANGE_ID in", values, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotIn(List<String> values) {
            addCriterion("EXCHANGE_ID not in", values, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdBetween(String value1, String value2) {
            addCriterion("EXCHANGE_ID between", value1, value2, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andExchangeIdNotBetween(String value1, String value2) {
            addCriterion("EXCHANGE_ID not between", value1, value2, "exchangeId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdIsNull() {
            addCriterion("DISTRIBUTOR_ID is null");
            return (Criteria) this;
        }

        public Criteria andDistributorIdIsNotNull() {
            addCriterion("DISTRIBUTOR_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDistributorIdEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID =", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID <>", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdGreaterThan(String value) {
            addCriterion("DISTRIBUTOR_ID >", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdGreaterThanOrEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID >=", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdLessThan(String value) {
            addCriterion("DISTRIBUTOR_ID <", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdLessThanOrEqualTo(String value) {
            addCriterion("DISTRIBUTOR_ID <=", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdLike(String value) {
            addCriterion("DISTRIBUTOR_ID like", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotLike(String value) {
            addCriterion("DISTRIBUTOR_ID not like", value, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdIn(List<String> values) {
            addCriterion("DISTRIBUTOR_ID in", values, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotIn(List<String> values) {
            addCriterion("DISTRIBUTOR_ID not in", values, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdBetween(String value1, String value2) {
            addCriterion("DISTRIBUTOR_ID between", value1, value2, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDistributorIdNotBetween(String value1, String value2) {
            addCriterion("DISTRIBUTOR_ID not between", value1, value2, "distributorId");
            return (Criteria) this;
        }

        public Criteria andDictIdIsNull() {
            addCriterion("DICT_ID is null");
            return (Criteria) this;
        }

        public Criteria andDictIdIsNotNull() {
            addCriterion("DICT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDictIdEqualTo(String value) {
            addCriterion("DICT_ID =", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdNotEqualTo(String value) {
            addCriterion("DICT_ID <>", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdGreaterThan(String value) {
            addCriterion("DICT_ID >", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdGreaterThanOrEqualTo(String value) {
            addCriterion("DICT_ID >=", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdLessThan(String value) {
            addCriterion("DICT_ID <", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdLessThanOrEqualTo(String value) {
            addCriterion("DICT_ID <=", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdLike(String value) {
            addCriterion("DICT_ID like", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdNotLike(String value) {
            addCriterion("DICT_ID not like", value, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdIn(List<String> values) {
            addCriterion("DICT_ID in", values, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdNotIn(List<String> values) {
            addCriterion("DICT_ID not in", values, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdBetween(String value1, String value2) {
            addCriterion("DICT_ID between", value1, value2, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdNotBetween(String value1, String value2) {
            addCriterion("DICT_ID not between", value1, value2, "dictId");
            return (Criteria) this;
        }

        public Criteria andDictIdNameIsNull() {
            addCriterion("DICT_ID_NAME is null");
            return (Criteria) this;
        }

        public Criteria andDictIdNameIsNotNull() {
            addCriterion("DICT_ID_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andDictIdNameEqualTo(String value) {
            addCriterion("DICT_ID_NAME =", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameNotEqualTo(String value) {
            addCriterion("DICT_ID_NAME <>", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameGreaterThan(String value) {
            addCriterion("DICT_ID_NAME >", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameGreaterThanOrEqualTo(String value) {
            addCriterion("DICT_ID_NAME >=", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameLessThan(String value) {
            addCriterion("DICT_ID_NAME <", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameLessThanOrEqualTo(String value) {
            addCriterion("DICT_ID_NAME <=", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameLike(String value) {
            addCriterion("DICT_ID_NAME like", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameNotLike(String value) {
            addCriterion("DICT_ID_NAME not like", value, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameIn(List<String> values) {
            addCriterion("DICT_ID_NAME in", values, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameNotIn(List<String> values) {
            addCriterion("DICT_ID_NAME not in", values, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameBetween(String value1, String value2) {
            addCriterion("DICT_ID_NAME between", value1, value2, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictIdNameNotBetween(String value1, String value2) {
            addCriterion("DICT_ID_NAME not between", value1, value2, "dictIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdIsNull() {
            addCriterion("DICT_ITEM_ID is null");
            return (Criteria) this;
        }

        public Criteria andDictItemIdIsNotNull() {
            addCriterion("DICT_ITEM_ID is not null");
            return (Criteria) this;
        }

        public Criteria andDictItemIdEqualTo(String value) {
            addCriterion("DICT_ITEM_ID =", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNotEqualTo(String value) {
            addCriterion("DICT_ITEM_ID <>", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdGreaterThan(String value) {
            addCriterion("DICT_ITEM_ID >", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdGreaterThanOrEqualTo(String value) {
            addCriterion("DICT_ITEM_ID >=", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdLessThan(String value) {
            addCriterion("DICT_ITEM_ID <", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdLessThanOrEqualTo(String value) {
            addCriterion("DICT_ITEM_ID <=", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdLike(String value) {
            addCriterion("DICT_ITEM_ID like", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNotLike(String value) {
            addCriterion("DICT_ITEM_ID not like", value, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdIn(List<String> values) {
            addCriterion("DICT_ITEM_ID in", values, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNotIn(List<String> values) {
            addCriterion("DICT_ITEM_ID not in", values, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdBetween(String value1, String value2) {
            addCriterion("DICT_ITEM_ID between", value1, value2, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNotBetween(String value1, String value2) {
            addCriterion("DICT_ITEM_ID not between", value1, value2, "dictItemId");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameIsNull() {
            addCriterion("DICT_ITEM_ID_NAME is null");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameIsNotNull() {
            addCriterion("DICT_ITEM_ID_NAME is not null");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameEqualTo(String value) {
            addCriterion("DICT_ITEM_ID_NAME =", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameNotEqualTo(String value) {
            addCriterion("DICT_ITEM_ID_NAME <>", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameGreaterThan(String value) {
            addCriterion("DICT_ITEM_ID_NAME >", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameGreaterThanOrEqualTo(String value) {
            addCriterion("DICT_ITEM_ID_NAME >=", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameLessThan(String value) {
            addCriterion("DICT_ITEM_ID_NAME <", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameLessThanOrEqualTo(String value) {
            addCriterion("DICT_ITEM_ID_NAME <=", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameLike(String value) {
            addCriterion("DICT_ITEM_ID_NAME like", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameNotLike(String value) {
            addCriterion("DICT_ITEM_ID_NAME not like", value, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameIn(List<String> values) {
            addCriterion("DICT_ITEM_ID_NAME in", values, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameNotIn(List<String> values) {
            addCriterion("DICT_ITEM_ID_NAME not in", values, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameBetween(String value1, String value2) {
            addCriterion("DICT_ITEM_ID_NAME between", value1, value2, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andDictItemIdNameNotBetween(String value1, String value2) {
            addCriterion("DICT_ITEM_ID_NAME not between", value1, value2, "dictItemIdName");
            return (Criteria) this;
        }

        public Criteria andSortNoIsNull() {
            addCriterion("SORT_NO is null");
            return (Criteria) this;
        }

        public Criteria andSortNoIsNotNull() {
            addCriterion("SORT_NO is not null");
            return (Criteria) this;
        }

        public Criteria andSortNoEqualTo(Long value) {
            addCriterion("SORT_NO =", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoNotEqualTo(Long value) {
            addCriterion("SORT_NO <>", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoGreaterThan(Long value) {
            addCriterion("SORT_NO >", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoGreaterThanOrEqualTo(Long value) {
            addCriterion("SORT_NO >=", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoLessThan(Long value) {
            addCriterion("SORT_NO <", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoLessThanOrEqualTo(Long value) {
            addCriterion("SORT_NO <=", value, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoIn(List<Long> values) {
            addCriterion("SORT_NO in", values, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoNotIn(List<Long> values) {
            addCriterion("SORT_NO not in", values, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoBetween(Long value1, Long value2) {
            addCriterion("SORT_NO between", value1, value2, "sortNo");
            return (Criteria) this;
        }

        public Criteria andSortNoNotBetween(Long value1, Long value2) {
            addCriterion("SORT_NO not between", value1, value2, "sortNo");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}